<!-- toaster directive -->
<toaster-container
	toaster-options="{'position-class': 'toast-top-right', 'close-button':true}"></toaster-container>
<!-- / toaster directive -->
<!-- 导航条 -->
<div class="bg-white bread-crumb">
	<ul class="breadcrumb b-a m-b-n-xs lter b-b wrapper-md">
		<li><a ui-href="main"><i class="fa fa-home"></i> 首页</a></li>
		<li class="active" ng-bind="title"></li>
	</ul>
</div>

<!-- 加载提醒 -->
<div ng-show="loading" class="text-center m-t-md text-lg">
	<i class="fa fa-spin fa-spinner"></i> 数据加载中...
</div>

<!-- 内容区域 -->
<div ng-hide="loading" class="wrapper-md content"> <!-- ng-hide="loading" -->
	<!-- 数据显示 -->
	<div class="wrapper-data">
		<div class="panel panel-default">
			<!-- 头部 -->
			<div class="panel-heading clearfix">
				
				<div class="w-auto">
					<form class="form-inline" > <!-- ng-submit="search()" -->
					<a ui-sref="main.biz.security.create" class="btn btn-info pull-right" style="margin-top: 10px;;">
                    <i class="icon-user-follow m-r-sm text-md"></i>添加权限</a>
						 <div class="form-group">
							<label for="identity">权限名称</label>
							<input type="text"  class="form-control" ng-model="param.idCard" style="width: 180px" id="identity" 
							placeholder="请输入权限名称" onclick="this.value=''" >
						</div>
						<div class="form-group">
							<button type="submit" class="btn btn-primary new-primary" style="margin-left: 10px" ng-click="clearSearch()" >查询</button>
						</div>
						<div class="form-group">
						<a  class="btn btn-primary" onclick="window.location.reload()">刷新</a>
						</div>
					 </form>
					 
						
					 
				</div>
			</div>

			<!-- 数据表格 -->
			<div class="table-responsive">
				<table class="table table-striped b-t b-light text-center">
					<thead>
						<tr>
							<th>序号</th>
							<th>权限名称</th>
							<th>操作</th>
						</tr>
					</thead>
					<tbody>
						<tr ng-repeat="item in pageInfo.data" >
							<td class="v-middle" >{{$index+1}}</td>
							<td class="v-middle">{{item.authName}}</td>
							<td class="v-middle">
								<a ui-sref="biz.security.update({id: item.authId})" class="btn btn-sm btn-primary">
									<i class="fa fa-edit m-r-xs text-sm"></i>编辑
								</a>
								<button ng-click="delItem(item.authId)" type="button" class="btn btn-sm btn-danger m-l-xs">
									<i class="fa fa-ban m-r-xs text-sm"></i>删除
								</button>
							</td>
						</tr>
					</tbody>
				</table>
			</div>
			<!-- /.table-responsive -->

			<!-- 底部分页 -->
			<span data-ng-include=" 'src/tpl/pageInfo.html' "></span>
		</div>
		<!-- /.panel -->
	</div>
	<!-- /.wrapper-data -->

</div>
<!-- /.wrapper-md -->